package com.example.evanproject.mapper;

import com.example.evanproject.domain.Teacher;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
* @author hanxiaoqi
* @description 针对表【teacher】的数据库操作Mapper
* @createDate 2024-03-09 21:52:13
* @Entity generator.domain.Teacher
*/
@Mapper
public interface TeacherMapper extends BaseMapper<Teacher> {

    Teacher selectteacherinfo(Integer tid);

    //按照id查询某个老师
    @Select("select * from teacher where t_id=#{tid}")
    Teacher selectbyid(Integer tid);
}




